package com.china08.yxyapi.entity.db.lessons;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 同步课程
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_lessons_synchro_lesson", catalog = "yxy_lessons")
public class YxyLessonsSynchroLesson extends BaseEntityNoId {

	@Id
	@Column(length = 32)
	private String id;

	@Column
	private String catalogId;
	@Column
	private String name;// 课程名称
	@Column(columnDefinition = "TEXT")
	private String summary;// 简介
	@Column
	private String cover;// 封面

	@Column
	private Integer vip;// 是否vip 0--非vip 1--vip课程

	@Column
	private Integer count;// 总课时

	@Column

	private Integer duration;// 总时长

	@Column
	private Date createDate;// 创建时间

	@Column
	private Integer status;// 状态-1-删除,0-草稿,1-待审核,2-审核通过,3-审核拒绝

	@Column
	private String rejectReason;// 拒绝原因

	@Column
	private Integer pv;// 观看次数

	@Column
	private Integer vv;// 观看人数

	@Column
	private Integer isVisible;// 0-不显示(下架),1-可显示(上架)

	@Column
	private Float ep;// 评分

	@Column
	private Integer epTimes;// 评分次数

	@Column
	private String schoolId;// 创建人学校id

	@Column
	private String author;// 贡献者

	@Column
	private String avator;// 贡献者头像

	/** 排列序号 */
	@Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
	private Integer orderNum = 20;

	@Column(columnDefinition = "tinyint default 0 comment '同步标记0:未同步,1:已同步' ")
	private Integer sync = 0;

	public String getCatalogId() {
		return catalogId;
	}

	public void setCatalogId(String catalogId) {
		this.catalogId = catalogId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public Integer getVip() {
		return vip;
	}

	public void setVip(Integer vip) {
		this.vip = vip;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getDuration() {
		return duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public Integer getPv() {
		return pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getVv() {
		return vv;
	}

	public void setVv(Integer vv) {
		this.vv = vv;
	}

	public Integer getIsVisible() {
		return isVisible;
	}

	public void setIsVisible(Integer isVisible) {
		this.isVisible = isVisible;
	}

	public Float getEp() {
		return ep;
	}

	public void setEp(Float ep) {
		this.ep = ep;
	}

	public Integer getEpTimes() {
		return epTimes;
	}

	public void setEpTimes(Integer epTimes) {
		this.epTimes = epTimes;
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getAvator() {
		return avator;
	}

	public void setAvator(String avator) {
		this.avator = avator;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getSync() {
		return sync;
	}

	public void setSync(Integer sync) {
		this.sync = sync;
	}

}
